#!/usr/bin/env bash
set -ex
export COMPOSE_DOCKER_CLI_BUILD=1
export DOCKER_BUILDKIT=1
my_path="$( cd "$(dirname "$0")"; pwd -P)"
${my_path}/shutdown
docker compose -f ${my_path}/docker-compose.yml build
docker compose -f ${my_path}/docker-compose.yml up -d
docker compose -f ${my_path}/docker-compose.yml exec app "/app/plugins/sqlfluff-templater-dbt/docker/init"
